package ch.uzh.ifi.seal.ssqa.perspectives;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class EditorPerspectiveFactory implements IPerspectiveFactory {

	private IPageLayout layout;
	
	@Override
	public void createInitialLayout(IPageLayout layout) {
		this.layout = layout;
		this.addViews();
	}
	
	private void addViews() {
		// Creates the overall folder layout. 
		// Note that each new Folder uses a percentage of the remaining EditorArea.
		this.layout.addView(IPageLayout.ID_PROJECT_EXPLORER, IPageLayout.LEFT,0.15f, layout.getEditorArea());
		this.layout.addView(IPageLayout.ID_PROP_SHEET, IPageLayout.BOTTOM, 0.85f, layout.getEditorArea());
	}
}
